using UnityEngine;
using System.Collections;

public class uiBaseButton : MonoBehaviour {
	
	public  float timePressed;
	public  bool m_isDown;
	// Use this for initialization
	void Start () {
	
	}
	
	protected void OnPress (bool isDown)
	{
		Camera.main.gameObject.GetComponent<CameraControl>().PressedUIButton(isDown);
	//	glog.debug ("uibasebutton OnPress isDown="+isDown);
		m_isDown = isDown;
	}

	
	// Update is called once per frame
	protected void Update () {
		if(m_isDown)
		{
			timePressed += Time.deltaTime;
		}
		else
		{
			timePressed = 0.0f;
		}
	}
}
